package com.sxhalo.fsms.service;


import com.sxhalo.fsms.domain.FactDevice;
import com.sxhalo.fsms.domain.RedisData;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface IFactDeviceService extends IBaseService<FactDevice> {
    int batchInsert(FactDevice record,Integer num,String devicename);
    int getChildCount(String where, Integer parentId);
    List<FactDevice> findChildPagerList(Integer start, Integer length, String where, String order, Integer parentId);
    List<FactDevice> findRealDataPagerList(Integer start, Integer length, String where, String order, Integer parentId);
    int batchInsert(List<FactDevice> list);
    int batchUpdate(FactDevice record,String where);
    //从redis中读取实时数据
    RedisData getLiveData(Integer deviceId);

    Map<String,Object> getStatistics(String where);

    List<FactDevice> getTypeList(String where);
    int deleteByWhere(String where);
    int getRealDataCount(String where, Integer parentId);
    //获取图表数据
    List<HashMap> findAttrHis(String  attr, String   where, String  tableName);
}
